package com.deep.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.deep.common.utils.PageUtils;
import com.deep.product.model.entity.AttrGroupEntity;
import com.deep.product.model.vo.AttrGroupWithAttrsVO;
import com.deep.product.model.vo.SpuItemAttrGroupVO;

import java.util.List;
import java.util.Map;

/**
 * 属性分组
 *
 * @author deep
 * @email ${email}
 * @date 2022-01-13 17:09:54
 */
public interface AttrGroupService extends IService<AttrGroupEntity> {

    PageUtils queryPage(Map<String, Object> params);

    PageUtils queryPage(Map<String, Object> params, Long catalogId);

    /**
     * 获取分类下所有销售属性分组以及关联分类
     * @param catalogId 分类id
     * @return 规格参数传输对象集合
     */
    List<AttrGroupWithAttrsVO> getAttrGroupWithAttrByCatalogId(Long catalogId);

    List<SpuItemAttrGroupVO> getAttrGroupWithAttrsBySpuId(Long spuId, Long catalogId);
}

